package org.soria.getinfo.views;

import org.soria.getinfo.panels.CPUPanel;
import org.soria.getinfo.panels.DiskPanel;
import org.soria.getinfo.panels.GPUPanel;
import org.soria.getinfo.panels.MemoryPanel;

import javax.swing.*;

public class MainFrame extends JFrame {
    public MainFrame() {
        super("Soria's System Info Toolkit");
        this.setSize(950, 600);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setLayout(null);
        this.setResizable(false);
        this.setLocationRelativeTo(null);

        CPUPanel cpu = new CPUPanel();
        cpu.setBounds(0,0,933,120);
        this.add(cpu);

        GPUPanel gpu = new GPUPanel();
        gpu.setBounds(0,130,933,120);
        this.add(gpu);

        MemoryPanel memory = new MemoryPanel();
        memory.setBounds(0,260,933,120);
        this.add(memory);

        DiskPanel disk = new DiskPanel();
        disk.setBounds(0,390,933,140);
        this.add(disk);

        this.setVisible(true);
    }
}
